package com.tplan.tplanfontpageserver.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.tplan.tplanfontpageserver.service.CompanyService;

@RestController
@RequestMapping("company")
public class CompanyController {

    @Autowired
    CompanyService companyService;

    @GetMapping("/test")
    public String test(@RequestParam("id") int id) {

        System.out.println("id===" + id);

        for (int i = 0; i < 10; i++) {
            companyService.getCompanyById(i);
        }


        return "test";
    }

}
